home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / tttsrc / form2.frm < prev    next >
Text File  |  1995-05-08  |  20KB  |  715 lines

  1. VERSION 2.00
  2. Begin Form Form2 
  3.    BackColor       =   &H00FFFFFF&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Playing Field"
  6.    ClientHeight    =   1905
  7.    ClientLeft      =   465
  8.    ClientTop       =   3945
  9.    ClientWidth     =   3015
  10.    Height          =   2310
  11.    Icon            =   FORM2.FRX:0000
  12.    Left            =   405
  13.    LinkTopic       =   "Form2"
  14.    MaxButton       =   0   'False
  15.    ScaleHeight     =   1905
  16.    ScaleWidth      =   3015
  17.    Top             =   3600
  18.    Width           =   3135
  19.    Begin CommandButton Command11 
  20.       Caption         =   "Quit"
  21.       Height          =   375
  22.       Left            =   2160
  23.       TabIndex        =   16
  24.       Top             =   1080
  25.       Width           =   735
  26.    End
  27.    Begin CommandButton Command10 
  28.       Caption         =   "About"
  29.       Height          =   375
  30.       Left            =   2160
  31.       TabIndex        =   12
  32.       Top             =   360
  33.       Width           =   735
  34.    End
  35.    Begin CommandButton Command9 
  36.       BackColor       =   &H0000FF00&
  37.       Caption         =   "?"
  38.       Height          =   375
  39.       Left            =   1320
  40.       TabIndex        =   8
  41.       Top             =   1320
  42.       Width           =   375
  43.    End
  44.    Begin CommandButton Command8 
  45.       Caption         =   "?"
  46.       Height          =   375
  47.       Left            =   720
  48.       TabIndex        =   7
  49.       Top             =   1320
  50.       Width           =   375
  51.    End
  52.    Begin CommandButton Command7 
  53.       Caption         =   "?"
  54.       Height          =   375
  55.       Left            =   120
  56.       TabIndex        =   6
  57.       Top             =   1320
  58.       Width           =   375
  59.    End
  60.    Begin CommandButton Command6 
  61.       Caption         =   "?"
  62.       Height          =   375
  63.       Left            =   1320
  64.       TabIndex        =   5
  65.       Top             =   720
  66.       Width           =   375
  67.    End
  68.    Begin CommandButton Command5 
  69.       Caption         =   "?"
  70.       Height          =   375
  71.       Left            =   720
  72.       TabIndex        =   4
  73.       Top             =   720
  74.       Width           =   375
  75.    End
  76.    Begin CommandButton Command4 
  77.       Caption         =   "?"
  78.       Height          =   375
  79.       Left            =   120
  80.       TabIndex        =   3
  81.       Top             =   720
  82.       Width           =   375
  83.    End
  84.    Begin CommandButton Command3 
  85.       Caption         =   "?"
  86.       Height          =   375
  87.       Left            =   1320
  88.       TabIndex        =   2
  89.       Top             =   120
  90.       Width           =   375
  91.    End
  92.    Begin CommandButton Command2 
  93.       Caption         =   "?"
  94.       Height          =   375
  95.       Left            =   720
  96.       TabIndex        =   1
  97.       Top             =   120
  98.       Width           =   375
  99.    End
  100.    Begin CommandButton Command1 
  101.       Caption         =   "?"
  102.       Height          =   375
  103.       Left            =   120
  104.       TabIndex        =   0
  105.       Top             =   120
  106.       Width           =   375
  107.    End
  108.    Begin TextBox Text1 
  109.       Height          =   285
  110.       Left            =   2520
  111.       LinkItem        =   "Send"
  112.       LinkTopic       =   "CRoom|Croom"
  113.       TabIndex        =   19
  114.       Text            =   "Text1"
  115.       Top             =   360
  116.       Width           =   180
  117.    End
  118.    Begin CommandButton Command12 
  119.       Caption         =   "Simulate Opponent"
  120.       Height          =   255
  121.       Left            =   2400
  122.       TabIndex        =   18
  123.       Top             =   1080
  124.       Width           =   255
  125.    End
  126.    Begin Line Line4 
  127.       BorderColor     =   &H00FF0000&
  128.       BorderWidth     =   3
  129.       X1              =   1200
  130.       X2              =   1200
  131.       Y1              =   120
  132.       Y2              =   1800
  133.    End
  134.    Begin Line Line3 
  135.       BorderColor     =   &H00FF0000&
  136.       BorderWidth     =   3
  137.       X1              =   600
  138.       X2              =   600
  139.       Y1              =   120
  140.       Y2              =   1800
  141.    End
  142.    Begin Line Line2 
  143.       BorderColor     =   &H00FF0000&
  144.       BorderWidth     =   3
  145.       X1              =   1800
  146.       X2              =   0
  147.       Y1              =   1200
  148.       Y2              =   1200
  149.    End
  150.    Begin Line Line1 
  151.       BorderColor     =   &H00FF0000&
  152.       BorderWidth     =   3
  153.       X1              =   0
  154.       X2              =   1800
  155.       Y1              =   600
  156.       Y2              =   600
  157.    End
  158.    Begin Label Label7 
  159.       Caption         =   "Label7"
  160.       Height          =   135
  161.       Left            =   2520
  162.       LinkItem        =   "Croom"
  163.       LinkTopic       =   "Croom|Croom"
  164.       TabIndex        =   17
  165.       Top             =   360
  166.       Width           =   135
  167.    End
  168.    Begin Label Label6 
  169.       Caption         =   "0"
  170.       Height          =   255
  171.       Left            =   2400
  172.       TabIndex        =   15
  173.       Top             =   360
  174.       Width           =   135
  175.    End
  176.    Begin Label Label5 
  177.       Caption         =   "0"
  178.       Height          =   255
  179.       Left            =   2280
  180.       TabIndex        =   14
  181.       Top             =   360
  182.       Width           =   135
  183.    End
  184.    Begin Label Label4 
  185.       Caption         =   "0"
  186.       Height          =   255
  187.       Left            =   2400
  188.       TabIndex        =   13
  189.       Top             =   360
  190.       Width           =   135
  191.    End
  192.    Begin Label Label3 
  193.       Caption         =   "Tie"
  194.       Height          =   255
  195.       Left            =   2640
  196.       TabIndex        =   11
  197.       Top             =   360
  198.       Width           =   135
  199.    End
  200.    Begin Label Label2 
  201.       Caption         =   "Loss"
  202.       Height          =   255
  203.       Left            =   2520
  204.       TabIndex        =   10
  205.       Top             =   360
  206.       Width           =   135
  207.    End
  208.    Begin Label Label1 
  209.       Caption         =   "Win"
  210.       Height          =   255
  211.       Left            =   2280
  212.       TabIndex        =   9
  213.       Top             =   360
  214.       Width           =   135
  215.    End
  216. End
  217.  
  218. Sub Command1_Click ()
  219.     C1 = 1
  220.     Command1.Enabled = False
  221.     Command1.FontSize = 12
  222.     Command1.Caption = Marker
  223.     setmodes
  224.    Text1 = "{d " + "TTT" + "," + opponent + "," + "1"
  225.    Text1.LinkMode = 2    '  This takes the text in the
  226.    Text1.LinkPoke        '  edit control and sends it via
  227.    Text1.LinkMode = 0    '  DDE to the C-Room "Send Text"
  228.    Text1 = ""
  229.     
  230. End Sub
  231.  
  232. Sub Command10_Click ()
  233.     'msg = "Copyright 1994, Virtual Systems V 0.1b"
  234.     'MsgBox msg
  235.     AboutTTT.Show
  236. End Sub
  237.  
  238. Sub Command11_Click ()
  239.     End
  240. End Sub
  241.  
  242. Sub Command12_Click ()
  243.    Text1 = "{d " + Text1 + "," + yourself + "," + Chr$(48 + (Int(Rnd(1) * 9)))
  244.    Text1.LinkMode = 2    '  This takes the text in the
  245.    Text1.LinkPoke        '  edit control and sends it via
  246.    Text1.LinkMode = 0    '  DDE to the C-Room "Send Text"
  247.    Text1 = ""
  248. End Sub
  249.  
  250. Sub Command2_Click ()
  251.    C2 = 1
  252.     Command2.Enabled = False
  253.     Command2.FontSize = 12
  254.     Command2.Caption = Marker
  255.     setmodes
  256.    Text1 = "{d " + "TTT" + "," + opponent + "," + "2"
  257.    Text1.LinkMode = 2    '  This takes the text in the
  258.    Text1.LinkPoke        '  edit control and sends it via
  259.    Text1.LinkMode = 0    '  DDE to the C-Room "Send Text"
  260.    Text1 = ""
  261.     
  262.     
  263.  '   If Whowon() = 1 Then
  264.  '       msg = "You Win!!"
  265.  '       MsgBox msg
  266.  '   Else
  267.  '       If Whowon() = 2 Then
  268.  '           msg = "You Lose."
  269.  '           MsgBox msg
  270.  '       Else
  271.  '           If Whowon() = 3 Then
  272.  '               msg = "It's a tie."
  273.  ''               MsgBox msg
  274.   '          End If
  275.   '      End If
  276.   '  End If
  277. End Sub
  278.  
  279. Sub Command3_Click ()
  280.     
  281.         C3 = 1
  282.     Command3.Enabled = False
  283.     Command3.FontSize = 12
  284.     Command3.Caption = Marker
  285.     setmodes
  286.    Text1 = "{d " + "TTT" + "," + opponent + "," + "3"
  287.    Text1.LinkMode = 2    '  This takes the text in the
  288.    Text1.LinkPoke        '  edit control and sends it via
  289.    Text1.LinkMode = 0    '  DDE to the C-Room "Send Text"
  290.    Text1 = ""
  291.     
  292. End Sub
  293.  
  294. Sub Command4_Click